package com.eascs.p2p.common.entity;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;

/**
 * The persistent class for the p2p_investor_withdraw_record database table.
 * 
 */
@Entity
@Table(name = "p2p_investor_withdraw_record")
@NamedQuery(name = "P2pInvestorWithdrawRecord.findAll", query = "SELECT p FROM P2pInvestorWithdrawRecord p")
public class InvestorWithdrawRecordEntity implements Serializable {
	private static final long serialVersionUID = 1L;
	/***
	 * 提现状态：0-未审核 1-审核中 2-审核未通过 3-审核通过 4-已放款 5-放款中 6-放款失败
	 */
	public static final int STATUS_NOT_AUDITED = 0;
	public static final int STATUS_AUDITED = 1;
	public static final int STATUS_FAIL_AUDITED = 2;
	public static final int STATUS_SUCCESS_AUDITED = 3;
	public static final int STATUS_SUCCESS_WITHDRAW = 4;
	public static final int STATUS_PROCESSING_WITHDRAW = 5;
	public static final int STATUS_FAIL_WITHDRAW = 6;
	
	@Id
	private String id;

	@Column(name = "requestno")
	private String requestno;

	@Column(name = "apply_amount")
	private BigDecimal applyAmount;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "create_time")
	private Date createTime;

	private String features;

	@Column(name = "investor_id")
	private String investorId;

	private Integer status = 0;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "update_time")
	private Date updateTime;

	private String verifier;
	
    private String refunder;
	private int version;

	public InvestorWithdrawRecordEntity() {
	}

	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public BigDecimal getApplyAmount() {
		return this.applyAmount;
	}

	public void setApplyAmount(BigDecimal applyAmount) {
		this.applyAmount = applyAmount;
	}

	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getFeatures() {
		return this.features;
	}

	public void setFeatures(String features) {
		this.features = features;
	}

	public String getInvestorId() {
		return this.investorId;
	}

	public void setInvestorId(String investorId) {
		this.investorId = investorId;
	}

	public Integer getStatus() {
		return this.status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Date getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public String getVerifier() {
		return this.verifier;
	}

	public void setVerifier(String verifier) {
		this.verifier = verifier;
	}

	public int getVersion() {
		return this.version;
	}

	public void setVersion(int version) {
		this.version = version;
	}

	public String getRequestno() {
		return requestno;
	}

	public void setRequestno(String requestno) {
		this.requestno = requestno;
	}
	
	

	public String getRefunder() {
		return refunder;
	}

	public void setRefunder(String refunder) {
		this.refunder = refunder;
	}

	@Override
	public String toString() {
		return "InvestorWithdrawRecordEntity [id=" + id + ", requestno=" + requestno + ", applyAmount=" + applyAmount
				+ ", createTime=" + createTime + ", features=" + features + ", investorId=" + investorId + ", status="
				+ status + ", updateTime=" + updateTime + ", verifier=" + verifier + ", version=" + version + "]";
	}

}